CFLAGS= -g -Wall
#CFLAGS= -O3
CC= gcc
LIBS=  -lm -fopenmp
INCLUDES= -I.
OBJS= gauss_elim_omp.o
SRCS= ${OBJS:.o=.c}
TARGET= gauss_elim

# FOR TEST
SERIAL_SRC= gauss_elim_serial.c

all:${TARGET} 

${TARGET}:${OBJS}
	${CC} ${CFLAGS} ${INCLUDES} -o $@ $^ ${LIBS}
.c.o:
	${CC} ${CFLAGS} ${INCLUDES} -c $< -fopenmp
dep: 
	gccmakedep ${SRCS}
clean:
	rm *.o ${TARGET} *~ -rf ${SERIAL}

# DO NOT DELETE
gauss_elim_omp.o: gauss_elim_omp.c /usr/include/stdio.h \
 /usr/include/features.h /usr/include/bits/predefs.h \
 /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
 /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h \
 /usr/lib/gcc/x86_64-linux-gnu/4.4.3/include/stddef.h \
 /usr/include/bits/types.h /usr/include/bits/typesizes.h \
 /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \
 /usr/lib/gcc/x86_64-linux-gnu/4.4.3/include/stdarg.h \
 /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
 /usr/include/sys/time.h /usr/include/time.h /usr/include/bits/time.h \
 /usr/include/sys/select.h /usr/include/bits/select.h \
 /usr/include/bits/sigset.h /usr/include/stdlib.h \
 /usr/include/sys/types.h /usr/include/endian.h \
 /usr/include/bits/endian.h /usr/include/bits/byteswap.h \
 /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h \
 /usr/include/alloca.h /usr/include/math.h /usr/include/bits/huge_val.h \
 /usr/include/bits/huge_valf.h /usr/include/bits/huge_vall.h \
 /usr/include/bits/inf.h /usr/include/bits/nan.h \
 /usr/include/bits/mathdef.h /usr/include/bits/mathcalls.h \
 /usr/include/errno.h /usr/include/bits/errno.h \
 /usr/include/linux/errno.h /usr/include/asm/errno.h \
 /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
 /usr/include/xlocale.h /usr/include/getopt.h \
 /usr/lib/gcc/x86_64-linux-gnu/4.4.3/include/omp.h
